import axios from 'axios'

axios.defaults.timeout = 50000

axios.interceptors.request.use(config => {
  // ...
  return config;
}, error => {
  return error;
})

function getMenu(params:any) {
    return axios.get(`api/${params}`);
}

export {
    getMenu
}